ConnectivityMonitor
Creates the desktop (JVM) monitor. Create one per process.
The probe needs explicit targets; the library never contacts a third-party host on its own:
ConnectivityMonitor {
desktop { tcp { targets = ProbeTargets.PublicResolvers + ProbeTargets.fromUrl(apiBaseUrl) } }
}Content copied to clipboard
Throws
if the configuration is invalid or the selected probe has no target.
fun ConnectivityMonitor(block: ConnectivityConfig.Builder.() -> Unit = {}): ConnectivityMonitor(source)
Builds the configuration with block and creates the desktop monitor; see the overload above.